package com.example.replacebooks.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;
import java.util.List;


import com.baomidou.mybatisplus.annotations.TableField;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * <p>
 * 购物车信息
 * </p>
 *
 * @author replacebooks
 * @since 2025-03-03
 */
@Data
@Table(name = "bookorder")
public class Bookorder {

    private static final long serialVersionUID = 1L;

    /**
     * 订单书籍ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer bookorderid;

    /**
     * 书籍名
     */
    private String bookname;

    /**
     * 编号
     */
    private String no;

    /**
     * 订单号
     */
    private BigDecimal totalprice;

    /**
     * 状态
     */
    private String state;

    /**
     * 下单时间
     */
    private String time;

    /**
     * 收货人姓名
     */
    private String consigname;

    /**
     * 收货人手机号
     */
    private String consigphone;

    /**
     * 地址
     */
    private String address;

    /**
     * 付款时间
     */
    private String paytime;

    /**
     * 用户ID
     */
    private Integer userid;

    @TableField(exist = false)
    private List<Orders> orders;

    @TableField(exist = false)
    private String username;

    @TableField(exist = false)
    private String name;


}
